/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.niceshot;

import java.sql.Connection;
import java.sql.DriverManager;

/**
 *
 * @author Alexandre
 */
public class Conexao {

    public static Connection getConnection() throws Exception {
        Class.forName("com.mysql.jdbc.Driver");
        String url = "jdbc:mysql://localhost:3306/niceshot";
        return DriverManager.getConnection(url, "root", "");
    }
}
